package com.weifangfirecontrolformal.weifangfirecontrolformal.web.service.check.minifirestation;

import cn.hutool.json.JSONObject;
import com.weifangfirecontrolformal.weifangfirecontrolformal.common.base.BaseService;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.model.RespEntity;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.utils.requestutil.HttpRequestUtil;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class MiniFirestationService extends BaseService {

	private static final Logger logger = LoggerFactory.getLogger(MiniFirestationService.class);


	/**
	 * 微型消防站新增
	 * @param
	 * @return
	 */
	public RespEntity miniFirestationAdd(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","miniFirestationAdd","miniFirestation");
	}

	/**
	 * 微型消防站详情
	 * @param
	 * @return
	 */
	public RespEntity miniFirestationDetail(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","miniFirestationDetail","miniFirestation");
	}

}
